package com.bmth.alise.crawler;

import java.io.InputStream;
import java.util.List;

import org.apache.commons.io.IOUtils;

import com.bmth.alise.utils.MQSender;

public class UrlInit {

	public static void main(String[] args) {

		try {
			InputStream ins = Thread.currentThread().getContextClassLoader().getResourceAsStream("init_url.txt");

			List<String> urls = IOUtils.readLines(ins, "utf-8");
			MQSender instance = MQSender.getInstance();
			instance.send("Seeds", urls);
			instance.closeResourses();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
